package com.xcj.cloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xcj.cloud.entity.Comment;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentMapper extends BaseMapper<Comment> {

    //得到所有评论信息
    @Select("select * from t_comment")
    List<Comment> getAllComment();
}
